package com.wicket.okrcomponent.integration.dto;

import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc ConfItemConfAnswerExtendDto
 * @使用场景
 */
@Data
public class ConfItemConfAnswerExtendDto
  extends BaseDto
  implements Serializable {

  /**
   * 答案ID
   */
  @ApiModelProperty("答案ID")
  private String optionResultId;

  /**
   * 答案值
   */
  @ApiModelProperty("答案值")
  private String endValue;

  /**
   * 扩展字段1（非必填）
   */
  @ApiModelProperty("扩展字段1 （非必填）")
  private String extensionField1;

  /**
   * 扩展字段2（非必填）
   */
  @ApiModelProperty("扩展字段2（非必填）")
  private String extensionField2;

  /**
   * 扩展字段3（非必填）
   */
  @ApiModelProperty("扩展字段3 （非必填）")
  private String extensionField3;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    ConfItemConfAnswerExtendDto that = (ConfItemConfAnswerExtendDto) o;
    return (
      optionResultId == that.optionResultId &&
      endValue == that.endValue &&
      extensionField1 == that.extensionField1 &&
      extensionField2 == that.extensionField2 &&
      extensionField3 == that.extensionField3
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      optionResultId,
      endValue,
      extensionField1,
      extensionField2,
      extensionField3
    );
  }

}
